import React from "react"
import ReactDOM from "react-dom"
import "./index.css"
import App from "./App"
import { Provider } from "react-redux"
import rootStore from "./store"
import reportWebVitals from "./reportWebVitals"
import axios from "axios"
import { PersistGate } from "redux-persist/integration/react"

axios.defaults.baseURL = "http://localhost:3721"

ReactDOM.render(
	<React.StrictMode>
		<Provider store={rootStore.store}>
			{/*第五步*/}
			<PersistGate persistor={rootStore.persistStoreInstance}>
				<App />
			</PersistGate>
		</Provider>
	</React.StrictMode>,
	document.getElementById("root")
)

reportWebVitals()
